using DataDynamics.ActiveReports;
using DataDynamics.ActiveReports.Document;
using DDCssLib;
using SS;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Resources;
namespace TVSBH.func
{
	public class frmTicketBillInput : ActiveReport3
	{
		private Func objFunc = new Func();
		public static DataTable objTable;
		private PageHeader pageHeader;
		private Detail detail;
		private PageFooter pageFooter;
		private Label lblPrintTime;
		private ReportHeader reportHeader1;
		private ReportFooter reportFooter1;
		private Line line11;
		private TextBox textBox1;
		private TextBox textBox2;
		private TextBox textBox3;
		private TextBox textBox4;
		private TextBox textBox5;
		private TextBox textBox6;
		private TextBox textBox7;
		private Line line14;
		private Label label11;
		private TextBox textBox9;
		private TextBox textBox10;
		private TextBox textBox11;
		private GroupHeader groupHeader1;
		private TextBox textBox12;
		private GroupFooter groupFooter1;
		private TextBox textBox13;
		public frmTicketBillInput()
		{
			this.InitializeComponent();
			SqlConnection sqlConnection = new SqlConnection(Program.strConnectionString);
			sqlConnection.Open();
			DataSet dataSet = new DataSet();
			string text = "SELECT ProductName, (ProductMoney - VATasMoney) AS DTCT, VATAsMoney, ";
			text += "(SELECT Cusname FROM TabBillVAT WHERE CHARINDEX(TabDetailBill.BillID, (REPLACE(TabBillVAT.BillID,'''',''))) > 0) AS Cusname, ";
			text += "(SELECT DateCreate FROM TabBillVAT WHERE CHARINDEX(TabDetailBill.BillID, (REPLACE(TabBillVAT.BillID,'''',''))) > 0) AS DateCreate, ";
			text += "(SELECT ID FROM TabBillVAT WHERE CHARINDEX(TabDetailBill.BillID, (REPLACE(TabBillVAT.BillID,'''',''))) > 0) AS ID, ";
			text += "(SELECT CusTax FROM TabBillVAT WHERE CHARINDEX(TabDetailBill.BillID, (REPLACE(TabBillVAT.BillID,'''',''))) > 0) AS CusTax ";
			text += "FROM TabDetailBill WHERE (SELECT DateCreate FROM TabBillVAT WHERE CHARINDEX(TabDetailBill.BillID, (REPLACE(TabBillVAT.BillID,'''',''))) > 0) IS NOT NULL ORDER BY TabDetailBill.VAT";
			SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(text, sqlConnection);
			sqlDataAdapter.Fill(dataSet);
			base.DataSource = dataSet.Tables[0];
			sqlConnection.Close();
			sqlConnection.Dispose();
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			ResourceManager resourceManager = new ResourceManager(typeof(frmTicketBillInput));
			this.pageHeader = new PageHeader();
			this.line11 = new Line();
			this.detail = new Detail();
			this.textBox11 = new TextBox();
			this.textBox9 = new TextBox();
			this.textBox10 = new TextBox();
			this.textBox3 = new TextBox();
			this.textBox4 = new TextBox();
			this.textBox1 = new TextBox();
			this.textBox2 = new TextBox();
			this.textBox5 = new TextBox();
			this.textBox6 = new TextBox();
			this.textBox7 = new TextBox();
			this.line14 = new Line();
			this.pageFooter = new PageFooter();
			this.lblPrintTime = new Label();
			this.reportHeader1 = new ReportHeader();
			this.reportFooter1 = new ReportFooter();
			this.label11 = new Label();
			this.groupHeader1 = new GroupHeader();
			this.groupFooter1 = new GroupFooter();
			this.textBox12 = new TextBox();
			this.textBox13 = new TextBox();
			((ISupportInitialize)this.textBox11).BeginInit();
			((ISupportInitialize)this.textBox9).BeginInit();
			((ISupportInitialize)this.textBox10).BeginInit();
			((ISupportInitialize)this.textBox3).BeginInit();
			((ISupportInitialize)this.textBox4).BeginInit();
			((ISupportInitialize)this.textBox1).BeginInit();
			((ISupportInitialize)this.textBox2).BeginInit();
			((ISupportInitialize)this.textBox5).BeginInit();
			((ISupportInitialize)this.textBox6).BeginInit();
			((ISupportInitialize)this.textBox7).BeginInit();
			((ISupportInitialize)this.lblPrintTime).BeginInit();
			((ISupportInitialize)this.label11).BeginInit();
			((ISupportInitialize)this.textBox12).BeginInit();
			((ISupportInitialize)this.textBox13).BeginInit();
			((ISupportInitialize)this).BeginInit();
			this.pageHeader.Controls.AddRange(new ARControl[]
			{
				this.line11
			});
			this.pageHeader.Height = 0f;
			this.pageHeader.Name = "pageHeader";
			this.line11.Border.BottomColor = Color.Black;
			this.line11.Border.BottomStyle = BorderLineStyle.None;
			this.line11.Border.LeftColor = Color.Black;
			this.line11.Border.LeftStyle = BorderLineStyle.None;
			this.line11.Border.RightColor = Color.Black;
			this.line11.Border.RightStyle = BorderLineStyle.None;
			this.line11.Border.TopColor = Color.Black;
			this.line11.Border.TopStyle = BorderLineStyle.None;
			this.line11.Height = 0.3740157f;
			this.line11.Left = 11.375f;
			this.line11.LineWeight = 1f;
			this.line11.Name = "line11";
			this.line11.Top = 0f;
			this.line11.Width = 0f;
			this.line11.X1 = 11.375f;
			this.line11.X2 = 11.375f;
			this.line11.Y1 = 0f;
			this.line11.Y2 = 0.3740157f;
			this.detail.ColumnSpacing = 0f;
			this.detail.Controls.AddRange(new ARControl[]
			{
				this.textBox11,
				this.textBox9,
				this.textBox10,
				this.textBox3,
				this.textBox4,
				this.textBox1,
				this.textBox2,
				this.textBox5,
				this.textBox6,
				this.textBox7,
				this.line14
			});
			this.detail.Height = 0.2083333f;
			this.detail.Name = "detail";
			this.textBox11.Border.BottomColor = Color.Black;
			this.textBox11.Border.BottomStyle = BorderLineStyle.None;
			this.textBox11.Border.LeftColor = Color.Black;
			this.textBox11.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox11.Border.RightColor = Color.Black;
			this.textBox11.Border.RightStyle = BorderLineStyle.None;
			this.textBox11.Border.TopColor = Color.Black;
			this.textBox11.Border.TopStyle = BorderLineStyle.None;
			this.textBox11.DataField = "CusTax";
			this.textBox11.Height = 0.1968504f;
			this.textBox11.Left = 5.197917f;
			this.textBox11.MultiLine = false;
			this.textBox11.Name = "textBox11";
			this.textBox11.Style = "";
			this.textBox11.Text = null;
			this.textBox11.Top = 0f;
			this.textBox11.Width = 1.283465f;
			this.textBox9.Border.BottomColor = Color.Black;
			this.textBox9.Border.BottomStyle = BorderLineStyle.None;
			this.textBox9.Border.LeftColor = Color.Black;
			this.textBox9.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox9.Border.RightColor = Color.Black;
			this.textBox9.Border.RightStyle = BorderLineStyle.None;
			this.textBox9.Border.TopColor = Color.Black;
			this.textBox9.Border.TopStyle = BorderLineStyle.None;
			this.textBox9.DataField = "Cusname";
			this.textBox9.Height = 0.1979167f;
			this.textBox9.Left = 3.21875f;
			this.textBox9.MultiLine = false;
			this.textBox9.Name = "textBox9";
			this.textBox9.Style = "";
			this.textBox9.Text = null;
			this.textBox9.Top = 3.973643E-08f;
			this.textBox9.Width = 0.9895837f;
			this.textBox10.Border.BottomColor = Color.Black;
			this.textBox10.Border.BottomStyle = BorderLineStyle.None;
			this.textBox10.Border.LeftColor = Color.Black;
			this.textBox10.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox10.Border.RightColor = Color.Black;
			this.textBox10.Border.RightStyle = BorderLineStyle.None;
			this.textBox10.Border.TopColor = Color.Black;
			this.textBox10.Border.TopStyle = BorderLineStyle.None;
			this.textBox10.DataField = "ProductExpiryDate";
			this.textBox10.Height = 0.1968504f;
			this.textBox10.Left = 4.208333f;
			this.textBox10.MultiLine = false;
			this.textBox10.Name = "textBox10";
			this.textBox10.OutputFormat = resourceManager.GetString("textBox10.OutputFormat");
			this.textBox10.Style = "text-align: left; ";
			this.textBox10.Text = null;
			this.textBox10.Top = 0f;
			this.textBox10.Width = 0.984252f;
			this.textBox3.Border.BottomColor = Color.Black;
			this.textBox3.Border.BottomStyle = BorderLineStyle.None;
			this.textBox3.Border.LeftColor = Color.Black;
			this.textBox3.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox3.Border.RightColor = Color.Black;
			this.textBox3.Border.RightStyle = BorderLineStyle.None;
			this.textBox3.Border.TopColor = Color.Black;
			this.textBox3.Border.TopStyle = BorderLineStyle.None;
			this.textBox3.DataField = "DateCreate";
			this.textBox3.Height = 0.1968504f;
			this.textBox3.Left = 1.447917f;
			this.textBox3.MultiLine = false;
			this.textBox3.Name = "textBox3";
			this.textBox3.OutputFormat = resourceManager.GetString("textBox3.OutputFormat");
			this.textBox3.Style = "";
			this.textBox3.Text = null;
			this.textBox3.Top = 0f;
			this.textBox3.Width = 1.766896f;
			this.textBox4.Border.BottomColor = Color.Black;
			this.textBox4.Border.BottomStyle = BorderLineStyle.None;
			this.textBox4.Border.LeftColor = Color.Black;
			this.textBox4.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox4.Border.RightColor = Color.Black;
			this.textBox4.Border.RightStyle = BorderLineStyle.None;
			this.textBox4.Border.TopColor = Color.Black;
			this.textBox4.Border.TopStyle = BorderLineStyle.None;
			this.textBox4.DataField = "ProductName";
			this.textBox4.Height = 0.1968504f;
			this.textBox4.Left = 6.489583f;
			this.textBox4.MultiLine = false;
			this.textBox4.Name = "textBox4";
			this.textBox4.Style = "";
			this.textBox4.Text = null;
			this.textBox4.Top = 0f;
			this.textBox4.Width = 0.8700787f;
			this.textBox1.Border.BottomColor = Color.Black;
			this.textBox1.Border.BottomStyle = BorderLineStyle.None;
			this.textBox1.Border.LeftColor = Color.Black;
			this.textBox1.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox1.Border.RightColor = Color.Black;
			this.textBox1.Border.RightStyle = BorderLineStyle.None;
			this.textBox1.Border.TopColor = Color.Black;
			this.textBox1.Border.TopStyle = BorderLineStyle.None;
			this.textBox1.DataField = "TT";
			this.textBox1.Height = 0.1968504f;
			this.textBox1.Left = 0.02083333f;
			this.textBox1.MultiLine = false;
			this.textBox1.Name = "textBox1";
			this.textBox1.Style = "";
			this.textBox1.Text = null;
			this.textBox1.Top = 0f;
			this.textBox1.Width = 0.4330709f;
			this.textBox2.Border.BottomColor = Color.Black;
			this.textBox2.Border.BottomStyle = BorderLineStyle.None;
			this.textBox2.Border.LeftColor = Color.Black;
			this.textBox2.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox2.Border.RightColor = Color.Black;
			this.textBox2.Border.RightStyle = BorderLineStyle.None;
			this.textBox2.Border.TopColor = Color.Black;
			this.textBox2.Border.TopStyle = BorderLineStyle.None;
			this.textBox2.DataField = "ID";
			this.textBox2.Height = 0.1968504f;
			this.textBox2.Left = 0.4583333f;
			this.textBox2.MultiLine = false;
			this.textBox2.Name = "textBox2";
			this.textBox2.OutputFormat = resourceManager.GetString("textBox2.OutputFormat");
			this.textBox2.Style = "";
			this.textBox2.Text = null;
			this.textBox2.Top = 0f;
			this.textBox2.Width = 0.984252f;
			this.textBox5.Border.BottomColor = Color.Black;
			this.textBox5.Border.BottomStyle = BorderLineStyle.None;
			this.textBox5.Border.LeftColor = Color.Black;
			this.textBox5.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox5.Border.RightColor = Color.Black;
			this.textBox5.Border.RightStyle = BorderLineStyle.None;
			this.textBox5.Border.TopColor = Color.Black;
			this.textBox5.Border.TopStyle = BorderLineStyle.None;
			this.textBox5.DataField = "DTCT";
			this.textBox5.Height = 0.1968504f;
			this.textBox5.Left = 7.366141f;
			this.textBox5.MultiLine = false;
			this.textBox5.Name = "textBox5";
			this.textBox5.OutputFormat = resourceManager.GetString("textBox5.OutputFormat");
			this.textBox5.Style = "text-align: right; ";
			this.textBox5.Text = null;
			this.textBox5.Top = 0f;
			this.textBox5.Width = 0.7401575f;
			this.textBox6.Border.BottomColor = Color.Black;
			this.textBox6.Border.BottomStyle = BorderLineStyle.None;
			this.textBox6.Border.LeftColor = Color.Black;
			this.textBox6.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox6.Border.RightColor = Color.Black;
			this.textBox6.Border.RightStyle = BorderLineStyle.None;
			this.textBox6.Border.TopColor = Color.Black;
			this.textBox6.Border.TopStyle = BorderLineStyle.None;
			this.textBox6.DataField = "VATAsMoney";
			this.textBox6.Height = 0.1968504f;
			this.textBox6.Left = 8.094488f;
			this.textBox6.MultiLine = false;
			this.textBox6.Name = "textBox6";
			this.textBox6.OutputFormat = resourceManager.GetString("textBox6.OutputFormat");
			this.textBox6.Style = "text-align: right; ";
			this.textBox6.Text = null;
			this.textBox6.Top = 0f;
			this.textBox6.Width = 0.984252f;
			this.textBox7.Border.BottomColor = Color.Black;
			this.textBox7.Border.BottomStyle = BorderLineStyle.None;
			this.textBox7.Border.LeftColor = Color.Black;
			this.textBox7.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox7.Border.RightColor = Color.Black;
			this.textBox7.Border.RightStyle = BorderLineStyle.None;
			this.textBox7.Border.TopColor = Color.Black;
			this.textBox7.Border.TopStyle = BorderLineStyle.None;
			this.textBox7.Height = 0.1968504f;
			this.textBox7.Left = 9.083908f;
			this.textBox7.MultiLine = false;
			this.textBox7.Name = "textBox7";
			this.textBox7.OutputFormat = resourceManager.GetString("textBox7.OutputFormat");
			this.textBox7.Style = "text-align: right; ";
			this.textBox7.Text = null;
			this.textBox7.Top = 0f;
			this.textBox7.Width = 0.984252f;
			this.line14.Border.BottomColor = Color.Black;
			this.line14.Border.BottomStyle = BorderLineStyle.None;
			this.line14.Border.LeftColor = Color.Black;
			this.line14.Border.LeftStyle = BorderLineStyle.None;
			this.line14.Border.RightColor = Color.Black;
			this.line14.Border.RightStyle = BorderLineStyle.None;
			this.line14.Border.TopColor = Color.Black;
			this.line14.Border.TopStyle = BorderLineStyle.None;
			this.line14.Height = 0f;
			this.line14.Left = 0.04166667f;
			this.line14.LineStyle = LineStyle.Dash;
			this.line14.LineWeight = 1f;
			this.line14.Name = "line14";
			this.line14.Top = 0.1979167f;
			this.line14.Width = 11.33628f;
			this.line14.X1 = 0.04166667f;
			this.line14.X2 = 11.37795f;
			this.line14.Y1 = 0.1979167f;
			this.line14.Y2 = 0.1979167f;
			this.pageFooter.Controls.AddRange(new ARControl[]
			{
				this.lblPrintTime
			});
			this.pageFooter.Height = 0.177f;
			this.pageFooter.Name = "pageFooter";
			this.lblPrintTime.Border.BottomColor = Color.Black;
			this.lblPrintTime.Border.BottomStyle = BorderLineStyle.None;
			this.lblPrintTime.Border.LeftColor = Color.Black;
			this.lblPrintTime.Border.LeftStyle = BorderLineStyle.None;
			this.lblPrintTime.Border.RightColor = Color.Black;
			this.lblPrintTime.Border.RightStyle = BorderLineStyle.None;
			this.lblPrintTime.Border.TopColor = Color.Black;
			this.lblPrintTime.Border.TopStyle = BorderLineStyle.None;
			this.lblPrintTime.Height = 0.18f;
			this.lblPrintTime.HyperLink = null;
			this.lblPrintTime.Left = 0.03125f;
			this.lblPrintTime.Name = "lblPrintTime";
			this.lblPrintTime.Style = "color: Gray; text-align: left; font-weight: normal; font-style: italic; background-color: White; font-size: 9pt; vertical-align: middle; ";
			this.lblPrintTime.Text = "";
			this.lblPrintTime.Top = 0f;
			this.lblPrintTime.Width = 3f;
			this.reportHeader1.Height = 0.6875f;
			this.reportHeader1.Name = "reportHeader1";
			this.reportFooter1.Controls.AddRange(new ARControl[]
			{
				this.label11
			});
			this.reportFooter1.Height = 0.6458333f;
			this.reportFooter1.Name = "reportFooter1";
			this.label11.Border.BottomColor = Color.Black;
			this.label11.Border.BottomStyle = BorderLineStyle.None;
			this.label11.Border.LeftColor = Color.Black;
			this.label11.Border.LeftStyle = BorderLineStyle.None;
			this.label11.Border.RightColor = Color.Black;
			this.label11.Border.RightStyle = BorderLineStyle.None;
			this.label11.Border.TopColor = Color.Black;
			this.label11.Border.TopStyle = BorderLineStyle.None;
			this.label11.Height = 0.2708333f;
			this.label11.HyperLink = null;
			this.label11.Left = 8.322917f;
			this.label11.Name = "label11";
			this.label11.Style = "text-align: center; font-weight: bold; background-color: White; font-size: 9.75pt; vertical-align: middle; ";
			this.label11.Text = "Người lập báo cáo";
			this.label11.Top = 0.1875f;
			this.label11.Width = 1.495083f;
			this.groupHeader1.Controls.AddRange(new ARControl[]
			{
				this.textBox12
			});
			this.groupHeader1.DataField = "VAT";
			this.groupHeader1.Height = 0.25f;
			this.groupHeader1.Name = "groupHeader1";
			this.groupFooter1.Controls.AddRange(new ARControl[]
			{
				this.textBox13
			});
			this.groupFooter1.Height = 0.25f;
			this.groupFooter1.Name = "groupFooter1";
			this.textBox12.Border.BottomColor = Color.Black;
			this.textBox12.Border.BottomStyle = BorderLineStyle.None;
			this.textBox12.Border.LeftColor = Color.Black;
			this.textBox12.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox12.Border.RightColor = Color.Black;
			this.textBox12.Border.RightStyle = BorderLineStyle.None;
			this.textBox12.Border.TopColor = Color.Black;
			this.textBox12.Border.TopStyle = BorderLineStyle.None;
			this.textBox12.DataField = "VAT";
			this.textBox12.Height = 0.2385171f;
			this.textBox12.Left = 0f;
			this.textBox12.MultiLine = false;
			this.textBox12.Name = "textBox12";
			this.textBox12.Style = "";
			this.textBox12.Text = null;
			this.textBox12.Top = 0f;
			this.textBox12.Width = 12.34974f;
			this.textBox13.Border.BottomColor = Color.Black;
			this.textBox13.Border.BottomStyle = BorderLineStyle.None;
			this.textBox13.Border.LeftColor = Color.Black;
			this.textBox13.Border.LeftStyle = BorderLineStyle.Solid;
			this.textBox13.Border.RightColor = Color.Black;
			this.textBox13.Border.RightStyle = BorderLineStyle.None;
			this.textBox13.Border.TopColor = Color.Black;
			this.textBox13.Border.TopStyle = BorderLineStyle.None;
			this.textBox13.DataField = "ProductMoney";
			this.textBox13.Height = 0.1968504f;
			this.textBox13.Left = 9.0625f;
			this.textBox13.MultiLine = false;
			this.textBox13.Name = "textBox13";
			this.textBox13.OutputFormat = resourceManager.GetString("textBox13.OutputFormat");
			this.textBox13.Style = "text-align: right; ";
			this.textBox13.SummaryGroup = "groupHeader1";
			this.textBox13.SummaryRunning = SummaryRunning.Group;
			this.textBox13.SummaryType = SummaryType.GrandTotal;
			this.textBox13.Text = null;
			this.textBox13.Top = 0f;
			this.textBox13.Width = 0.984252f;
			base.MasterReport = false;
			base.PageSettings.DefaultPaperSize = false;
			base.PageSettings.Margins.Bottom = 0.1181102f;
			base.PageSettings.Margins.Left = 0.1377953f;
			base.PageSettings.Margins.Right = 0.07874016f;
			base.PageSettings.Margins.Top = 0.2f;
			base.PageSettings.Orientation = PageOrientation.Landscape;
			base.PageSettings.PaperHeight = 11.69291f;
			////base.PageSettings.PaperKind = 9;
			base.PageSettings.PaperWidth = 8.267716f;
			base.PrintWidth = 18.30881f;
			base.Sections.Add(this.reportHeader1);
			base.Sections.Add(this.pageHeader);
			base.Sections.Add(this.groupHeader1);
			base.Sections.Add(this.detail);
			base.Sections.Add(this.groupFooter1);
			base.Sections.Add(this.pageFooter);
			base.Sections.Add(this.reportFooter1);
			base.StyleSheet.Add(new StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: normal; font-size: 10pt; color: Black; ddo-char-set: 204; ", "Normal"));
			base.StyleSheet.Add(new StyleSheetRule("font-size: 16pt; font-weight: bold; ", "Heading1", "Normal"));
			base.StyleSheet.Add(new StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-weight: bold; font-style: italic; ", "Heading2", "Normal"));
			base.StyleSheet.Add(new StyleSheetRule("font-size: 13pt; font-weight: bold; ", "Heading3", "Normal"));
			((ISupportInitialize)this.textBox11).EndInit();
			((ISupportInitialize)this.textBox9).EndInit();
			((ISupportInitialize)this.textBox10).EndInit();
			((ISupportInitialize)this.textBox3).EndInit();
			((ISupportInitialize)this.textBox4).EndInit();
			((ISupportInitialize)this.textBox1).EndInit();
			((ISupportInitialize)this.textBox2).EndInit();
			((ISupportInitialize)this.textBox5).EndInit();
			((ISupportInitialize)this.textBox6).EndInit();
			((ISupportInitialize)this.textBox7).EndInit();
			((ISupportInitialize)this.lblPrintTime).EndInit();
			((ISupportInitialize)this.label11).EndInit();
			((ISupportInitialize)this.textBox12).EndInit();
			((ISupportInitialize)this.textBox13).EndInit();
			((ISupportInitialize)this).EndInit();
		}
	}
}
